package com.cn.serverline.lineicp.productionLine.param;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 工步分页查询参数
 *
 * @author Gmr
 * @since 2024/7/31
 */
@Data
public class ProcessStepsPageParam {

	/**
	 * 页码大小
	 */
	@ApiModelProperty(value = "页码大小")
	private Integer pageSize;

	/**
	 * 当前页
	 */
	@ApiModelProperty(value = "当前页")
	private Integer pageNo;

	/**
	 * 工序ID
	 */
	@ApiModelProperty(value = "工序ID", required = true)
	@JsonSerialize(using= ToStringSerializer.class)
	@NotNull(message = "工序ID不能为空")
	private Long productionProcessesId;
}
